/* 引入axios */
import request from '@/utils/request'

/* 登录接口 */
export const getLogin = data => request.post('/user/login', data)

/* 注册接口 */
export const getRegister = data => request.post('/user/registered', data)

/* 获取用户信息 */
export const getUser = () => request.get('/user')

/* 退出接口 */
export const removeUser = () => request.post('/user/logout')

/* 我的收藏接口 */
export const getFavorite = () => request.get('/user/favorites')

// 我的出租接口
export const getHous = () => request.get('/user/houses')
